package com.hyd.issues;

import com.hyd.dao.DAO;

import java.util.Map;

/**
 * (description)
 *
 * @author yiding.he
 */
public class DaoUtil {

    public static DAO getDAO() {
        return DAO.getDAO("issues");
    }

    public static Long lastInsertId() {
        Map<String,Object> map = getDAO().queryFirst("SELECT LAST_INSERT_ID() as id");
        return ((Double) map.get("id")).longValue();
    }
}
